package com.example.router;

import com.google.auto.service.AutoService;

import java.util.Set;

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.TypeElement;
//注解处理器
//扫描拿到注解全路径
@AutoService(Process.class)
//指定使用的java版本
@SupportedSourceVersion(SourceVersion.RELEASE_8)

//注册给哪些注解
public class RouterProcesseor extends AbstractProcessor {
    /**
     *
     * 做一些初始化工作
     * @param processingEnv
     */
    @Override
    public synchronized void init(ProcessingEnvironment processingEnv) {
        super.init(processingEnv);
    }

    @Override
    public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
        return false;
    }

}
